{% extends "learning/base.html" %}

{% block title %}错题详情 · {{ mistake.title }}{% endblock %}

{% block extra_head %}
{% include "learning/mistake_detail/_extra_head.html" %}
{% endblock %}

{% block content %}
<div class="detail-grid">
    {% include "learning/mistake_detail/_main.html" %}
    {% include "learning/mistake_detail/_sidebar.html" %}
</div>

{% include "learning/mistake_detail/_ai_chat.html" %}

{% if user.is_teacher and mistake.student.assigned_teacher_id == user.id and mistake.status != mistake.Status.RESOLVED %}
    {% include "learning/mistake_detail/_teacher_feedback.html" %}
{% endif %}

{% include "learning/mistake_detail/_scripts.html" %}
{% endblock %}
